<?php
namespace Engine\Auth;
class CurrentUser {

    static function getData(){
        
        $authNamespace = \Zend_Auth::getInstance()->getIdentity();
        return ($authNamespace)?$authNamespace:new \Entities\Profile();
    }

    static function getId() {
        return self::getData()->getUserId();
    }

}